{{extend './layout/layout.html'}}
{{block 'style'}}
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/public/css/dashboard.css" rel="stylesheet">
    <link rel="stylesheet" href="../public/css/page.css">
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->

{{/block}}
{{block 'content'}}
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">nodemis管理系统 </a>
        </div>
        <img src="" alt="">
        <div id="navbar" class="navbar-collapse collapse">
            <div class="bs-example" data-example-id="split-button-dropdown">
                <div class="btn-group open">
                    <button type="button" class="btn btn-default">设置</button>
                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                        <span class="caret"></span>
                        <span class="sr-only">Toggle Dropdown</span>
                    </button>
                    <ul class="dropdown-menu">
                        <li>你好：{{userinfo}}</li>
                        <li><a href="/tuichu"  class="btn btn-danger">退出登录</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li class="active"><a href="#">人员类一 </a></li>
                <li><a href="#">人员类二</a></li>
                <li><a href="#">人员类三</a></li>
                <li><a href="#">人员类四</a></li>
            </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<!--            <h1 class="page-header">班级信息</h1>-->

<!--            <div class="row placeholders">-->
<!--                {{each clas}}-->
<!--                <div class="col-xs-6 col-sm-3 placeholder">-->
<!--                    <img src="" width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">-->
<!--&lt;!&ndash;                    <h4>{{$value.Label}}</h4>&ndash;&gt;-->
<!--                    <span class="text-muted">{{$value.Something}}</span>-->
<!--                </div>-->
<!--                {{/each}}-->
<!--            </div>-->

            <h2 class="sub-header">人员信息</h2>
            <a href="/student/new"><button type="button"  class="btn btn-success">添加人员</button></a>
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>id</th>
                        <th>姓名</th>
                        <th>性别</th>
                        <th>年龄</th>
                        <th>身高</th>
                        <th>爱好</th>
                        <th>时间</th>
                        <th>编辑</th>
                        <th>删除</th>
                    </tr>
                    </thead>
                    <tbody>
                   {{each students}}
                    <tr>
                        <td>{{$value.id}}</td>
                        <td>{{$value.name}}</td>
                        {{if $value.gender==1 }}
                         <td>男</td>
                        {{else if $value.gender==0}}
                        <td>女</td>
                        {{/if}}
                        <td>{{$value.age}}</td>
                        <td>{{$value.height}}</td>
                        <td>{{$value.hobbies}}</td>
                        <td>{{$value.time}}</td>
                        <td width="100"><a href="/student/alter?id={{$value.id}}"><button type="button" class="btn btn-success">编辑</button></a></td>
                        <td width="100"><a href="/student/delete?id={{$value.id}}"><button type="button" class="btn btn-danger">删除</button></a></td>
                    </tr>
                    {{/each}}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{{/block}}
{{block 'script'}}
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
{{/block}}
